package v1

import "github.com/gin-gonic/gin"

type RoleController struct {
}

func NewRole(g *gin.RouterGroup) *gin.RouterGroup {
	role := RoleController{}

	g.GET("/role/get", role.Get)
	g.GET("/role/list", role.List)
	g.POST("/role/create", role.Create)
	g.POST("/role/update", role.Update)
	g.DELETE("/role/delete", role.Delete)

	return g
}

func (r RoleController) Get(c *gin.Context) {}

// @Summary 获取角色列表
// @Produce json
// @Param page query int false "页码"
// @Param limit query int false "每页数量"
// @Success 200 {object} model.RoleSwagger "成功"
// @Failure 400 {object} errcode.Error "请求错误"
// @Failure 500 {object} errcode.Error "内部错误"
// @outer /api/v1/role [get]
func (r RoleController) List(c *gin.Context)   {}
func (r RoleController) Create(c *gin.Context) {}
func (r RoleController) Update(c *gin.Context) {}
func (r RoleController) Delete(c *gin.Context) {}
